﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 任务
    /// </summary>
    [Description("任务")]
    [Table("TaskItem")]
    public class TaskItem : TableModelBase
    {
        /// <summary>
        /// 是否可以执行
        /// </summary>
        [Description("是否可以执行")]
        public bool? CanExecute { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Description("名称")]
        public string Name { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Description("类型")]
        public string TypeName { get; set; }

        /// <summary>
        /// 启动时执行
        /// </summary>
        [Description("启动时执行")]
        public bool? RunWhenStartup { get; set; }

        /// <summary>
        /// 执行类型
        /// </summary>
        [Description("执行类型")]
        public string ExecuteType { get; set; }

        /// <summary>
        /// 下次执行时间
        /// </summary>
        [Description("下次执行时间")]
        public DateTime? NextExecuteTime { get; set; }
    }
}
